package com.example.club.clubmanage.model;

import java.util.ArrayList;

public class OderDto extends BaseDto {
    private ArrayList<OderList> result;
    private int pageNum;//1
    private int pageSize;//10
    private int size;//1
    private int startRow;//1
    private int endRow;//1
    private int pages;//1
    private int prePage;//1
    private int nextPage;//1

    public ArrayList<OderList> getResult() {
        return result;
    }

    public void setResult(ArrayList<OderList> result) {
        this.result = result;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getStartRow() {
        return startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getEndRow() {
        return endRow;
    }

    public void setEndRow(int endRow) {
        this.endRow = endRow;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getPrePage() {
        return prePage;
    }

    public void setPrePage(int prePage) {
        this.prePage = prePage;
    }

    public int getNextPage() {
        return nextPage;
    }

    public void setNextPage(int nextPage) {
        this.nextPage = nextPage;
    }

    @Override
    public String toString() {
        return "OderDto{" +
                "result=" + result +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", size=" + size +
                ", startRow=" + startRow +
                ", endRow=" + endRow +
                ", pages=" + pages +
                ", prePage=" + prePage +
                ", nextPage=" + nextPage +
                '}';
    }

    class OderList{
        private int total;//1
        private ArrayList<OderPo> list;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public ArrayList<OderPo> getList() {
            return list;
        }

        public void setList(ArrayList<OderPo> list) {
            this.list = list;
        }

        @Override
        public String toString() {
            return "OderList{" +
                    "total=" + total +
                    ", list=" + list +
                    '}';
        }
    }

    class OderPo {
        private String orderNo; // HSORDER000000002
        private String customerOpenid; // oQOQZ0ZqYuMSJsp
        private int totalCharge; // 12000
        private int numberOfPeople; // 1
        private String orderPlace; // 地方
        private String updateUser; //
        private long  orderBookTime; // 1533801490000
        private int  status; // 2
        private long  orderFinishTime; // 2
        private ArrayList<orderDetailList> orderDetailList;

        public String getOrderNo() {
            return orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public String getCustomerOpenid() {
            return customerOpenid;
        }

        public void setCustomerOpenid(String customerOpenid) {
            this.customerOpenid = customerOpenid;
        }

        public int getTotalCharge() {
            return totalCharge;
        }

        public void setTotalCharge(int totalCharge) {
            this.totalCharge = totalCharge;
        }

        public int getNumberOfPeople() {
            return numberOfPeople;
        }

        public void setNumberOfPeople(int numberOfPeople) {
            this.numberOfPeople = numberOfPeople;
        }

        public String getOrderPlace() {
            return orderPlace;
        }

        public void setOrderPlace(String orderPlace) {
            this.orderPlace = orderPlace;
        }

        public String getUpdateUser() {
            return updateUser;
        }

        public void setUpdateUser(String updateUser) {
            this.updateUser = updateUser;
        }

        public long getOrderBookTime() {
            return orderBookTime;
        }

        public void setOrderBookTime(long orderBookTime) {
            this.orderBookTime = orderBookTime;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public long getOrderFinishTime() {
            return orderFinishTime;
        }

        public void setOrderFinishTime(long orderFinishTime) {
            this.orderFinishTime = orderFinishTime;
        }

        public ArrayList<OderDto.orderDetailList> getOrderDetailList() {
            return orderDetailList;
        }

        public void setOrderDetailList(ArrayList<OderDto.orderDetailList> orderDetailList) {
            this.orderDetailList = orderDetailList;
        }

        @Override
        public String toString() {
            return "OderPo{" +
                    "orderNo='" + orderNo + '\'' +
                    ", customerOpenid='" + customerOpenid + '\'' +
                    ", totalCharge=" + totalCharge +
                    ", numberOfPeople=" + numberOfPeople +
                    ", orderPlace='" + orderPlace + '\'' +
                    ", updateUser='" + updateUser + '\'' +
                    ", orderBookTime=" + orderBookTime +
                    ", status=" + status +
                    ", orderFinishTime=" + orderFinishTime +
                    ", orderDetailList=" + orderDetailList +
                    '}';
        }
    }
    class orderDetailList{
        private String orderDetailNo; // HSORDERD0000000002
        private String orderNo; // HSORDER000000002
        private String priduct; // HSP00002
        private String productName; // 泡椒凤爪
        private String productImg; // 泡椒凤爪
        private String productDescribe; // 好吃
        private int  number; // 20
        private int  totalCharge ; // 12000
        private int  orderDiscount ; // 12000
        private int  actualCharge ; // 12000
        private int  detailStatus ; // 12000
        private String  createUser ; // system
        private long createTime ; // 1533801490000
    }
}
